package com.zkh.myutils.net.mail;

import java.io.InputStream;

/**
 * 邮件资源
 */
class MailSource {
	//资源流
	private InputStream inputStream;
	//资源唯一标识
	private String contentId;
	//资源类型
	private String contentType;
	//文件名
	private String filename;
	
	/**
	 * 构造方法，内嵌资源使用
	 * @param inputStream 资源流
	 * @param contentId 资源唯一标识
	 * @param contentType 资源类型
	 */
	public MailSource(InputStream inputStream, String contentId, String contentType) {
		this.inputStream = inputStream;
		this.contentId = contentId;
		this.contentType = contentType;
	}
	
	/**
	 * 构造方法，附件使用
	 * @param inputStream 附件流
	 * @param filename 附件名称（含附件）
	 */
	public MailSource(InputStream inputStream, String filename) {
		this.inputStream = inputStream;
		this.filename = filename;
	}
	
	public InputStream getInputStream() {
		return inputStream;
	}
	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}
	public String getContentId() {
		return contentId;
	}
	public void setContentId(String contentId) {
		this.contentId = contentId;
	}
	public String getContentType() {
		return contentType;
	}
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
}
